package State;

/**
 * @author duanzhizhou
 * @date 2024/10/15
 */
public class Noon implements State {
    @Override
    public void show(Time time) {
        if (time.getHour() > 13) {
            time.setState(new Afternoon());
            time.show();
        } else {
            System.out.println("现在是中午" + time.getHour() + "点");
        }
    }
}
